import request from '../assets/axios'
import * as urls from '../assets'

export const TestToken = ( params) => request({
    url: urls.baseUrl + '/search',
    method: 'get',
    params,

})



export const LoginKey = (params) => request({
    url: urls.baseUrl + '/login/qr/key',
    method: 'get',
    params,
    withCredentials: true,
});


export const LoginCreateQr = (params) => request({
    url: urls.baseUrl + '/login/qr/create',
    method: 'get',
    params,
    withCredentials: true,
})


export const LoginGetCookies = (params) => request({
    url: urls.baseUrl + '/login/qr/check',
    method: 'get',
    params,
    withCredentials: true,
})

export const GetLoginStatus = (params) => request({
    url: urls.baseUrl + '/login/status',
    method: 'get',
    params,
})

export const GetUserInfo = (params) => request({
    url: urls.baseUrl + '/user/detail',
    method: 'get',
    params,
})